package com.hk.webapp.service;

import com.hk.webapp.bean.CmsArticle;
import com.hk.webapp.vo.CmsArticleQueryVo;
import com.github.pagehelper.PageInfo;

import java.util.List;


public interface CmsArticleService {

    PageInfo<CmsArticle> searchPageList(CmsArticleQueryVo vo, Integer sysUserId);

    CmsArticle getEntityById(Integer id);

    CmsArticle getEntityByCode(String code,Integer notId);

    int insert(CmsArticle cmsArticle);

    int update(CmsArticle cmsArticle);

    int softDelByIds(List<Integer> ids);

    PageInfo<CmsArticle> getPageListByCateIdAndState(Integer pageIndex,Integer pageSize,Integer category,Integer state);
    PageInfo<CmsArticle> getPageListByCodeAndState(Integer pageIndex,Integer pageSize,String code,Integer state);
    List<CmsArticle> getEntityListByRelId(Integer relId,Integer notId);

    PageInfo<CmsArticle> searchPageListByKey(Integer pageIndex,Integer pageSize,List<Integer> cateIds,String key);

    int getCount();
}
